package com.techsoul.module.goods.enmus;


public enum SpuStatusEnum {

    CREATED("CREATED", "新登记", "0", "新登记"),
    VALID("VALID", "正常", "1", "正常"),
    INVALID("INVALID", "下架", "9", "下架");

    private final String eventCode;
    private final String eventName;
    private final String status;
    private final String statusName;

    SpuStatusEnum(String eventCode, String eventName, String status, String statusName) {
        this.eventCode = eventCode;
        this.eventName = eventName;
        this.status = status;
        this.statusName = statusName;
    }

    public String getEventCode() {
        return eventCode;
    }

    public String getEventName() {
        return eventName;
    }

    public String getStatus() {
        return status;
    }

    public String getStatusName() {
        return statusName;
    }

    public static SpuStatusEnum getEventEnum(String eventCode) {
        for (SpuStatusEnum bean : SpuStatusEnum.values()) {
            if (bean.getEventCode().equals(eventCode)) {
                return bean;
            }
        }
        return null;
    }
}
